public class TestClass {
    public static void main(String[] args) {
        int s =7654;
        String numStr = Integer.toString(s);
        System.out.println(numStr.charAt(1));
    }
}